import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        System.out.print(a + " " +b+ " ");
        Rectangle rc = new Rectangle(a, b);
        System.out.println(rc.getArea() + " " + rc.getPerimeter());
        double c = sc.nextDouble();
        double d = sc.nextDouble();
        System.out.print(c+" " +d+" ");
        Rectangle r2 = new Rectangle(c, d);
        System.out.println(r2.getArea() + " " + r2.getPerimeter());
    }
}

class Rectangle {
    private double width;
    private double height;
    public Rectangle(double width, double height) {
        this.width = width;
        this.height = height;
    }
    public double getWidth() {
        return width;
    }
    public double getHeight() {
        return height;
    }
    public void setWidth(double width) {
        this.width = width;
    }
    public void setHeight(double height) {
        this.height = height;
    }
    public double getArea() {
        return width * height;
    }
    public double getPerimeter() {
        return 2 * width + 2 * height;
    }
}